package com.kexun.controller;

import com.kexun.platform.migu.Entrance;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @PostMapping("setCookie")
    public String setCookie(@RequestBody String body) {
        System.out.println(body);
        Entrance.globalCookie = body;
        return "SUCCESS";
    }

}
